package com.fzkj.thread.demo7;

import java.util.Date;

public class SleepTest {
    public static void main(String[] args) {
        while(true){
            System.out.println(new Date()+"线程正在执行......");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
